angular.module('services.breadcrumbs', []);
angular.module('services.breadcrumbs').factory('breadcrumbs', ['$rootScope', '$state', function($rootScope, $state){
    $rootScope.$state = $state;

	// 解析模板之前，进行判断
	$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams) {
        //console.info(toState);
        //console.info(toParams);
        //console.info(fromState);
        //console.info(fromParams);
	});

}]);
